From: Chad Horohoe Date: Thu, 22 Oct 2009 11:40:38 +0000 (+0000) Subject: (bug 21222) Free tag if not using it. Patch by Platonides. X-Git-Tag: 1.31.0-rc.0~39188 X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=commitdiff_plain;h=bfaf6cc2b487f17b343b620993370e040efbcf90;p=lhc%2Fweb%2Fwiklou.git (bug 21222) Free tag if not using it. Patch by Platonides. --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 87f8e67e91..3fe43f94ac 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -254,6 +254,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN reuploading. * Added $wgRateLimitsExcludedIPs, to allow specific IPs to be whitelisted from rate limits. +* (bug 21222) When $wgUseTeX is not enabled, is no longer registered with + the parser so extensions are free to implement their own tag === Bug fixes in 1.16 === diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index c96ada40b6..f1d8fcda63 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3282,8 +3282,11 @@ class Parser $output = Xml::escapeTagsOnly( $content ); break; case 'math': - $output = $wgContLang->armourMath( - MathRenderer::renderMath( $content, $attributes ) ); + if ( $this->mOptions->getUseTeX() ) { + $output = $wgContLang->armourMath( + MathRenderer::renderMath( $content, $attributes ) ); + } + /* else let a tag hook handle it (bug 21222) */ break; case 'gallery': $output = $this->renderImageGallery( $content, $attributes );